package com.shopping.userside.goods.service.impl;

import com.shopping.userside.goods.dao.StoreDao;
import com.shopping.userside.goods.pojo.Store;
import com.shopping.userside.goods.service.StoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (Store)表服务实现类
 *
 * @author xusai
 * @since 2020-06-02 10:50:32
 */
@Service("StoreService")
public class StoreServiceImpl implements StoreService {

    @Autowired
    private StoreDao storeDao;

    @Override
    public List<Store> queryAll() {
      return storeDao.selectAll();
    }

    @Override
    public Store queryById(int sid) {
        return storeDao.selectByPrimaryKey(sid);
    }

}